package com.songtech.login.model;

import java.util.ArrayList;
import java.util.List;

public class SysPosUserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysPosUserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPosUserIdIsNull() {
            addCriterion("pos_user_id is null");
            return (Criteria) this;
        }

        public Criteria andPosUserIdIsNotNull() {
            addCriterion("pos_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andPosUserIdEqualTo(Long value) {
            addCriterion("pos_user_id =", value, "posUserId");
            return (Criteria) this;
        }

        public Criteria andPosUserIdNotEqualTo(Long value) {
            addCriterion("pos_user_id <>", value, "posUserId");
            return (Criteria) this;
        }

        public Criteria andPosUserIdGreaterThan(Long value) {
            addCriterion("pos_user_id >", value, "posUserId");
            return (Criteria) this;
        }

        public Criteria andPosUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("pos_user_id >=", value, "posUserId");
            return (Criteria) this;
        }

        public Criteria andPosUserIdLessThan(Long value) {
            addCriterion("pos_user_id <", value, "posUserId");
            return (Criteria) this;
        }

        public Criteria andPosUserIdLessThanOrEqualTo(Long value) {
            addCriterion("pos_user_id <=", value, "posUserId");
            return (Criteria) this;
        }

        public Criteria andPosUserIdIn(List<Long> values) {
            addCriterion("pos_user_id in", values, "posUserId");
            return (Criteria) this;
        }

        public Criteria andPosUserIdNotIn(List<Long> values) {
            addCriterion("pos_user_id not in", values, "posUserId");
            return (Criteria) this;
        }

        public Criteria andPosUserIdBetween(Long value1, Long value2) {
            addCriterion("pos_user_id between", value1, value2, "posUserId");
            return (Criteria) this;
        }

        public Criteria andPosUserIdNotBetween(Long value1, Long value2) {
            addCriterion("pos_user_id not between", value1, value2, "posUserId");
            return (Criteria) this;
        }

        public Criteria andImeiIsNull() {
            addCriterion("imei is null");
            return (Criteria) this;
        }

        public Criteria andImeiIsNotNull() {
            addCriterion("imei is not null");
            return (Criteria) this;
        }

        public Criteria andImeiEqualTo(String value) {
            addCriterion("imei =", value, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiNotEqualTo(String value) {
            addCriterion("imei <>", value, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiGreaterThan(String value) {
            addCriterion("imei >", value, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiGreaterThanOrEqualTo(String value) {
            addCriterion("imei >=", value, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiLessThan(String value) {
            addCriterion("imei <", value, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiLessThanOrEqualTo(String value) {
            addCriterion("imei <=", value, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiLike(String value) {
            addCriterion("imei like", value, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiNotLike(String value) {
            addCriterion("imei not like", value, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiIn(List<String> values) {
            addCriterion("imei in", values, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiNotIn(List<String> values) {
            addCriterion("imei not in", values, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiBetween(String value1, String value2) {
            addCriterion("imei between", value1, value2, "imei");
            return (Criteria) this;
        }

        public Criteria andImeiNotBetween(String value1, String value2) {
            addCriterion("imei not between", value1, value2, "imei");
            return (Criteria) this;
        }

        public Criteria andPosUserNameIsNull() {
            addCriterion("pos_user_name is null");
            return (Criteria) this;
        }

        public Criteria andPosUserNameIsNotNull() {
            addCriterion("pos_user_name is not null");
            return (Criteria) this;
        }

        public Criteria andPosUserNameEqualTo(String value) {
            addCriterion("pos_user_name =", value, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameNotEqualTo(String value) {
            addCriterion("pos_user_name <>", value, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameGreaterThan(String value) {
            addCriterion("pos_user_name >", value, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("pos_user_name >=", value, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameLessThan(String value) {
            addCriterion("pos_user_name <", value, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameLessThanOrEqualTo(String value) {
            addCriterion("pos_user_name <=", value, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameLike(String value) {
            addCriterion("pos_user_name like", value, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameNotLike(String value) {
            addCriterion("pos_user_name not like", value, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameIn(List<String> values) {
            addCriterion("pos_user_name in", values, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameNotIn(List<String> values) {
            addCriterion("pos_user_name not in", values, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameBetween(String value1, String value2) {
            addCriterion("pos_user_name between", value1, value2, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserNameNotBetween(String value1, String value2) {
            addCriterion("pos_user_name not between", value1, value2, "posUserName");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdIsNull() {
            addCriterion("pos_user_pwd is null");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdIsNotNull() {
            addCriterion("pos_user_pwd is not null");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdEqualTo(String value) {
            addCriterion("pos_user_pwd =", value, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdNotEqualTo(String value) {
            addCriterion("pos_user_pwd <>", value, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdGreaterThan(String value) {
            addCriterion("pos_user_pwd >", value, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdGreaterThanOrEqualTo(String value) {
            addCriterion("pos_user_pwd >=", value, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdLessThan(String value) {
            addCriterion("pos_user_pwd <", value, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdLessThanOrEqualTo(String value) {
            addCriterion("pos_user_pwd <=", value, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdLike(String value) {
            addCriterion("pos_user_pwd like", value, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdNotLike(String value) {
            addCriterion("pos_user_pwd not like", value, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdIn(List<String> values) {
            addCriterion("pos_user_pwd in", values, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdNotIn(List<String> values) {
            addCriterion("pos_user_pwd not in", values, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdBetween(String value1, String value2) {
            addCriterion("pos_user_pwd between", value1, value2, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPwdNotBetween(String value1, String value2) {
            addCriterion("pos_user_pwd not between", value1, value2, "posUserPwd");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoIsNull() {
            addCriterion("pos_user_photo is null");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoIsNotNull() {
            addCriterion("pos_user_photo is not null");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoEqualTo(String value) {
            addCriterion("pos_user_photo =", value, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoNotEqualTo(String value) {
            addCriterion("pos_user_photo <>", value, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoGreaterThan(String value) {
            addCriterion("pos_user_photo >", value, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("pos_user_photo >=", value, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoLessThan(String value) {
            addCriterion("pos_user_photo <", value, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoLessThanOrEqualTo(String value) {
            addCriterion("pos_user_photo <=", value, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoLike(String value) {
            addCriterion("pos_user_photo like", value, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoNotLike(String value) {
            addCriterion("pos_user_photo not like", value, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoIn(List<String> values) {
            addCriterion("pos_user_photo in", values, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoNotIn(List<String> values) {
            addCriterion("pos_user_photo not in", values, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoBetween(String value1, String value2) {
            addCriterion("pos_user_photo between", value1, value2, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andPosUserPhotoNotBetween(String value1, String value2) {
            addCriterion("pos_user_photo not between", value1, value2, "posUserPhoto");
            return (Criteria) this;
        }

        public Criteria andOpenIdIsNull() {
            addCriterion("open_id is null");
            return (Criteria) this;
        }

        public Criteria andOpenIdIsNotNull() {
            addCriterion("open_id is not null");
            return (Criteria) this;
        }

        public Criteria andOpenIdEqualTo(String value) {
            addCriterion("open_id =", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotEqualTo(String value) {
            addCriterion("open_id <>", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdGreaterThan(String value) {
            addCriterion("open_id >", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdGreaterThanOrEqualTo(String value) {
            addCriterion("open_id >=", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLessThan(String value) {
            addCriterion("open_id <", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLessThanOrEqualTo(String value) {
            addCriterion("open_id <=", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLike(String value) {
            addCriterion("open_id like", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotLike(String value) {
            addCriterion("open_id not like", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdIn(List<String> values) {
            addCriterion("open_id in", values, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotIn(List<String> values) {
            addCriterion("open_id not in", values, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdBetween(String value1, String value2) {
            addCriterion("open_id between", value1, value2, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotBetween(String value1, String value2) {
            addCriterion("open_id not between", value1, value2, "openId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Boolean value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Boolean value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Boolean value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Boolean value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Boolean> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Boolean> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}